﻿namespace Service.Framework.SmsRecordLog
{
    /// <summary>
    /// 短信日志表
    /// </summary>

    public class SmsRecordLogDto
    {
        public SmsRecordLogDto(string supplierName, string templateName, string templateParam, string signName, string phoneNumber, bool success, string msg = "发送成功")
        {
            SupplierName = supplierName;
            TemplateName = templateName;
            TemplateParam = templateParam;
            SignName = signName;
            PhoneNumber = phoneNumber;
            Msg = msg;
            Success = success;
        }

        /// <summary>
        /// 短信供应商
        /// </summary>
        public string SupplierName { get; private set; }

        /// <summary>
        /// 模板名称
        /// </summary>
        public string TemplateName { get; private set; }

        /// <summary>
        /// 模板参数
        /// </summary>
        public string TemplateParam { get; private set; }


        /// <summary>
        /// 签名名称
        /// </summary>
        public string SignName { get; private set; }


        /// <summary>
        /// 手机号码
        /// </summary>
        public string PhoneNumber { get; private set; }


        /// <summary>
        /// 消息，失败原因
        /// </summary>
        public string Msg { get; private set; }


        /// <summary>
        /// 是否成功
        /// </summary>
        public bool Success { get; private set; }

    }
}
